import {
	get,
	post
} from "../request/request";

// 获取首页轮播图
export const getBannerList = () => {
	return get("/system/banner")
}

// 登录注册
// 注册
export const Uregister = (loginDto) => {
	return post('/auth/register', loginDto)
}

// 登录
export const ULogin = (loginDto) => {
	return post("/auth/login", loginDto)
}

// 获取公告
export const getNotice = () => {
	return get("/system/fronotice")
}

// 点赞
export const putLike = (id) => {
	return get(`/system/artwork/${id}/like`)
}

// 收藏

export const putFavorite = (artworkId) => {
	return get(`/system/favorite/add`, artworkId)
}
// 收藏列表
export const getFavoriteList = () => {
	return get(`/system/favorite`)
}